package org.example.designpattern.visitor;

import java.util.Random;

public class Product extends Staff {

    public Product(String name) {
        super(name);
    }

    @Override
    void accept(Visitor visitor) {
        visitor.visit(this);
    }

    public int getFinishProducts() {
        return new Random().nextInt(100);
    }
}
